F1:: {
    MouseGetPos &MouseX, &MouseY
    Color := PixelGetColor(MouseX, MouseY)
    ToolTip MouseX "=" MouseY "=" Color
}

XButton2::
    {
        while(GetKeyState("XButton2", "P")) {
            color1 := PixelGetColor(1093, 848)
            color2 := PixelGetColor(1068, 852)
            if (color1 == "0x320B04" || color2 == "0x9C8684" )
            {
                SendInput "{r}"
                Sleep 400
                SendInput "{t}"
                Sleep 100
            } else 
            {
                Sleep 100
                color1 := PixelGetColor(1070, 850)
                if (color1 == "0x8DBCEC")
                {
                    SendInput "{t}"
                }
            }
        }
    }

    XButton1::{
        SendInput "{s}"
        Sleep 50
        SendInput "{s}"
    }
